from sqlalchemy import Column, Integer, String, Float, ForeignKey, DateTime
from ..database  import Base

class EmotionRecord(Base):
    __tablename__ = "emotion_records"

    id = Column(Integer, primary_key=True, index=True)
    session_id = Column(Integer, ForeignKey("interview_sessions.id", ondelete="CASCADE"))
    round = Column(Integer, nullable=False)
    emotion_label = Column(String(50))
    confidence = Column(Float)
    image_path = Column(String(255))
    timestamp = Column(DateTime)
